/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.isel.medknow.tables;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author fallen
 */
public class Patient {
    //<editor-fold defaultstate="collapsed" desc="fields">
    private Integer patientId;
    private String name;
    private Date dateOfBirth;
    private Set visits = new HashSet();
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="IDE generated stuff">
    public Date getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(Date dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Set getVisits() {
        return visits;
    }

    public void setVisits(Set visits) {
        this.visits = visits;
    }
    //</editor-fold>
    
    public Patient() {
    }

    @Override
    public String toString() {
        return String.format("patientId=%s, name=%s, dateOfBirth=%s, visitSize=%s",
                patientId.toString(), name, dateOfBirth.toString(), visits.size()+"");
    }
}
